package ch07_loadclass;

public class P1_TestLoad {
    public static class SuperClass {
        static {
            System.out.println("SuperClass init!");
        }
        public static int value = 123;
    }
    public static class SubClass extends SuperClass {
        static {
            System.out.println("SubClass init!");
        }
    }
    /**
     * 非主动使用类字段演示
     **/
    public static class NotInitialization {
        public static void main(String[] args) {
            System.out.println(SubClass.value);
        }
    }
}
